import request from '@/utils/request'

// 查询销售类型配置列表
export function listSaleTypeConfig(query) {
  return request({
    url: '/datafactory/saleTypeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询销售类型配置详细
export function getSaleTypeConfig(id) {
  return request({
    url: '/datafactory/saleTypeConfig/' + id,
    method: 'get'
  })
}

// 新增销售类型配置
export function addSaleTypeConfig(data) {
  return request({
    url: '/datafactory/saleTypeConfig',
    method: 'post',
    data: data
  })
}

// 修改销售类型配置
export function updateSaleTypeConfig(data) {
  return request({
    url: '/datafactory/saleTypeConfig',
    method: 'put',
    data: data
  })
}

// 删除销售类型配置
export function delSaleTypeConfig(id) {
  return request({
    url: '/datafactory/saleTypeConfig/' + id,
    method: 'delete'
  })
}
